<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="/shop/include :: header"></head>
<body>
	<form class="layui-form" action="" lay-filter="shop_undertakes_detail-update-form" style="margin-top: 20px;">
		<input th:value="${session.formToken}" name="formToken" type="hidden" />
		<input name="id" th:value="${shopUndertakesDetail.id}"
			type="hidden">
		<!--  -->
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">申请总编号：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="applyTotalCode"
					th:value="${shopUndertakesDetail.applyTotalCode}" name="applyTotalCode"
					placeholder="请输入申请总编号">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">申请子编号：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="applyChildCode"
					th:value="${shopUndertakesDetail.applyChildCode}" name="applyChildCode"
					placeholder="请输入申请子编号">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">订单子编号：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="orderChildCode"
					th:value="${shopUndertakesDetail.orderChildCode}" name="orderChildCode"
					placeholder="请输入订单子编号">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">用户ID：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="memberId"
					th:value="${shopUndertakesDetail.memberId}" name="memberId"
					placeholder="请输入用户ID">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">用户收货地址ID：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="memberAddressId"
					th:value="${shopUndertakesDetail.memberAddressId}" name="memberAddressId"
					placeholder="请输入用户收货地址ID">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">sku编码：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="goodsCode"
					th:value="${shopUndertakesDetail.goodsCode}" name="goodsCode"
					placeholder="请输入sku编码">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">商品名称：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="goodsName"
					th:value="${shopUndertakesDetail.goodsName}" name="goodsName"
					placeholder="请输入商品名称">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">商品图片：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="goodsImage"
					th:value="${shopUndertakesDetail.goodsImage}" name="goodsImage"
					placeholder="请输入商品图片">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">售价：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="price"
					th:value="${shopUndertakesDetail.price}" name="price"
					placeholder="请输入售价">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">数量：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="number"
					th:value="${shopUndertakesDetail.number}" name="number"
					placeholder="请输入数量">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">结算金额：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="totalPrice"
					th:value="${shopUndertakesDetail.totalPrice}" name="totalPrice"
					placeholder="请输入结算金额">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">运费：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="freight"
					th:value="${shopUndertakesDetail.freight}" name="freight"
					placeholder="请输入运费">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">运单号：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="courierNumber"
					th:value="${shopUndertakesDetail.courierNumber}" name="courierNumber"
					placeholder="请输入运单号">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">运单单据：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="courierDocuments"
					th:value="${shopUndertakesDetail.courierDocuments}" name="courierDocuments"
					placeholder="请输入运单单据">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">订单状态 10.待发货 20.已发货  30.已完成  40,已拒绝：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="orderState"
					th:value="${shopUndertakesDetail.orderState}" name="orderState"
					placeholder="请输入订单状态 10.待发货 20.已发货  30.已完成  40,已拒绝">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">拒绝理由：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="receiptFor"
					th:value="${shopUndertakesDetail.receiptFor}" name="receiptFor"
					placeholder="请输入拒绝理由">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">添加时间：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="createTime"
					th:value="${#dates.format(shopUndertakesDetail.createTime, 'yyyy-MM-dd HH:mm:ss')}"
					name="createTime" placeholder="请输入添加时间">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">修改时间：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="updateTime"
					th:value="${#dates.format(shopUndertakesDetail.updateTime, 'yyyy-MM-dd HH:mm:ss')}"
					name="updateTime" placeholder="请输入修改时间">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="deleteFlag"
					th:value="${shopUndertakesDetail.deleteFlag}" name="deleteFlag"
					placeholder="请输入">
			</div>
		</div>
 		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit="" lay-filter="shop_undertakes_detail-update">立即提交</button>
			</div>
		</div>
	</form>
	<div th:include="/shop/include::footer"></div>
	<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
	<script>
		layui.use([ 'layer', 'jquery', 'form', 'laydate' ], function() {
			var $ = layui.jquery;
			var laydate = layui.laydate;
			var layer = layui.layer;
			var form = layui.form;

			//日期时间选择器
                 			laydate.render({
				elem : '#createTime',
				type : 'datetime'
			});
 			laydate.render({
				elem : '#updateTime',
				type : 'datetime'
			});
  
			//监听提交
			form.on('submit(shop_undertakes_detail-update)', function(data) {
				//提交数据data.field
				ajaxPostLoad("/shop/undertakes_detail/update", data.field);
				return false;
			});
		});
	</script>
</body>
</html>